<?php
	$email = $_POST['email'];
	$delete = "delete from persons where `Email` = ?";
	$mysqli = new mysqli('localhost', 'n00659426', 'n00659426', 'n00659426');
	if(!$mysqli)
	{
		echo "Connection failed";
		exit;
	}

	$q=$mysqli->prepare($delete);
	$q->bind_param('s', $email);
	$q->execute();
	
	$mysqli->close();

	$url = "index.php";

	header("Location: ".$url);
	die;
